/**
 * 通用css
 */
body { 
	font-family: "Microsoft Yahei";
	height:100%;
    background-color: #ededef;
}
ul {
	margin: 0;
	padding: 0;
}
.panel, .panel-heading {
    border-radius: 0;
}
@keyframes loading {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
@-webkit-keyframes loading {
	 0% {
		 transform: rotate(0deg);
	 }
	 100% {
		 transform: rotate(360deg);
	 }
 }
.loading {
	position: absolute;
	margin: auto;
	width: 30px;
	height: 30px;
	border: 3px dashed #008800;
	border-radius: 50%;
	text-align: center;
	line-height: 33px;
    font-size: 25px;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	-webkit-animation: loading 1s linear infinite;
	animation: loading 1s linear infinite;
}
#top-message {
    position: fixed;
    top: 5px;
    left: 45%;
    margin: auto;
    list-style: none;
    padding: 0;
    z-index: 999;
}
#top-message >li{
    margin-bottom: 5px;
}
.navbar {
	border: 0;
	border-radius: 0;
	background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 0 6%;
    margin: 0;
}
.search {
    width: 200px;
    margin: 10px 20px 0 0;
    position: relative;
}
.search >input {
    height: 30px;
    box-shadow: none;
    font-size: 12px;
    border-radius: 21px;
}
.search-button {
    display: block;
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
}
.search >span >button {
    height: 30px;
    font-size: 12px;
    border-bottom-right-radius: 21px;
    border-top-right-radius: 21px;
}
#search-result-box {
    position: absolute;
    top: 40px;
    left: 0px;
    background-color: #fff;
    border-radius: 3px;
    width: 300px;
    box-shadow: 0px 0px 16px #ccc;
    z-index: 999;
}
#search-result-box >.up-arrow{
    top: -20px;
    left: 20px;
}
.up-arrow {
    position: absolute;
    height: 0;
    width: 0;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.search-result-list {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
.search-result-item {
    width: 100%;
    display: block;
    font-size: 14px;
}
.search-result-item >a {
    display: block;
    color: #66757f;
    padding: 7px 15px 7px 10px;
    line-height: 32px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.search-result-item >a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #3b88c3;
}
.nav {
    color: rgb(85, 172, 238);
}

/**
 * 欢迎页的css
 */
.front-bg{
    position: fixed;
    height: 200%;
    width: 200%;
    left: -50%;
    top: -10%;
    z-index: -1;
    background-color: #000;
}
.front-image{
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    min-width: 50%;
    min-height: 50%;
    margin: auto;
}
.front-welcome {
    position: absolute;
    width: 500px;
    left: 30%;
    margin: 100px 0 0 -250px;
    border-radius: 3px;
    background-color: #fff;
    color:rgb(85, 172, 238);
    padding: 12px;
}
.front-text {
    text-indent: 2em;
    font-size: 16px;
}
.sun {
    position: fixed;
    right: 100px;
    top: 100px;
    animation: sunMove 2s linear infinite;
    -webkit-animation: sunMove 2s linear infinite;
}
@keyframes sunMove {
    0% {
        transform: rotate(0deg) scaleZ(1);
    }
    100% {
        transform: rotate(-360deg) scaleZ(0.5);
    }
}
@-webkit-keyframes sunMove {
    0% {
        transform: rotate(0deg) scaleZ(1);
    }
    100% {
        transform: rotate(-360deg) scaleZ(0.5);
    }
}
/**
 * 首页的css
 */
.topBanner {
    position: relative;
    height: 320px;
    margin: 0 -15px 0 -15px;
}
.topBannerBg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.topBannerBg >img {
    position: absolute;
    left: 0;
    right: 0;
    top: -9999px;
    bottom: -9999px;
    margin: auto 0;
    width: 100%;
}
.topBannerText {
    position: absolute;
    height: 50%;
    width: 50%;
    color: #fff;
    text-align: center;
    margin: auto;
    font-size: 22px;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 5;
}

.announce, .tags-box {
    width: 100%;
    margin: 10px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #dfdfdf;
    background-color: #fff;
}
.announce-header , .tags-box-header {
    font-weight: bolder;
    box-shadow: 0 1px 5px -3px #000;
    margin-bottom: 2px;
    padding: 7px 16px;
}
.announce-body , .tags-box-body{
    padding: 7px 16px;
}
#postsList >li{
	display: block;
	border: 1px solid #eee;
	width: 100%;
	margin: 10px 0 10px 0;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.author{
	position: relative;
	left: -30px;
	padding: 0;
	margin-bottom: 10px;
}
.post-content {
	text-indent: 2em;
    padding: 16px 20px;
    position: relative;
}
.post-content img {
    max-width: 75%;
}
.post-time {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 12px;
    color: rgb(101, 130, 171);
}
.infos {
	position: relative;
	margin-top: 15px;
    height: 25px;
    padding: 2px 25px;
    color: #aaa;
    text-indent: 0;
}
.opta {
    height: 19px;
    float: left;
    font-size: 12px;
}
.post-tag, .like-button, .comment-button {
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
}
.post-tag:hover, .like-button:hover, .comment-button:hover{
    color: #000;
}
.shadow {
    height: 1px;
    overflow: hidden;
    border-top: 1px solid #c8c8c8;
    border-bottom: 1px solid #f1f1f1;
    background: #e1e1e1;
}
.optb {
    float: right;
    font-size: 12px;
}
#commentBox {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #fafafa;
}
#commentBox >.up-arrow {
    top: -18px;
    right: 53px;
    border-color: transparent transparent #55acee transparent;
    z-index: 999;
}
.comment-form {
    display: block;
    padding: 20px 0;
    width: 80%;
    margin: 0 auto;
}
.comment-form >input[type="text"] {
    display: inline-block;
    height: 30px;
    width: 77%;
    border: 1px solid #cececf;
    padding-left: 10px;
}
.comment-form >input[type="submit"] {
    height: 30px;
    width: 20%;
    color: #fff;
    background-color: #55acee;
    border: 1px solid transparent;
}

.comment-list{
	width: 75%;
	margin: 0 auto;
	padding: 20px 20px 0 20px;
    overflow: hidden;
}
.comment-list >li{
	margin-bottom: 10px;
	border-bottom: 1px solid #eee;
}
.comment-list >li:hover .deleteCommentButton {
    visibility: visible;
}
.deleteCommentButton{
    visibility: hidden;
}
.deleteCommentButton, .comment-time{
	display: block;
    margin-right: 5px;
	float: right;
	font-size: 12px;
	color: #330033;
}
.deleteCommentButton:hover{
    color: red;
    text-decoration: none;
}

.view-container {
  position: relative;
}

.view-frame.ng-enter,
.view-frame.ng-leave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.view-frame.ng-enter {
  -webkit-animation: 0.5s fade-in;
  -moz-animation: 0.5s fade-in;
  -o-animation: 0.5s fade-in;
  animation: 0.5s fade-in;
  z-index: 100;
}

.view-frame.ng-leave {
  -webkit-animation: 0.5s fade-out;
  -moz-animation: 0.5s fade-out;
  -o-animation: 0.5s fade-out;
  animation: 0.5s fade-out;
  z-index: 99;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@-moz-keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@-webkit-keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@-moz-keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@-webkit-keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/**
 * 列表动画
 */

#postsList >.ng-enter,
#postsList >.ng-leave,
#postsList >.ng-move {
  -webkit-transition: 0.5s linear all;
  -moz-transition: 0.5s linear all;
  -o-transition: 0.5s linear all;
  transition: 0.5s linear all;
}

#postsList >.ng-enter,
#postsList >.ng-move {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

#postsList >.ng-move.ng-move-active,
#postsList >.ng-enter.ng-enter-active {
  opacity: 1;
  height: 120px;
}

#postsList >.ng-leave {
  opacity: 1;
  overflow: hidden;
}

#postsList >.ng-leave.ng-leave-active {
  opacity: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/**
 * 注册页的css
 */
#registForm, #sayPanel, #loginForm {
    opacity: 0;
    animation: 0.4s cubic-bezier(0, 0.25, 0.08, 1) 0s normal forwards 1 running showDiscovery;
    -webkit-animation: 0.4s cubic-bezier(0, 0.25, 0.08, 1) 0s normal forwards 1 running showDiscovery;
}
#registPanel {
    width: 600px;
    border-radius: 3px;
    padding: 50px 88px;
    background-color: #fff;
    margin: 70px auto;
}
#registPanel >h2 {
    font-size: 38px;
    font-family: Arial, sans-serif;
}
#registForm {
    margin-top: 20px;
}
#registForm >input {
    margin-bottom: 15px;
    height: 30px;
    box-shadow: none;
}
#registForm >button {
    background-color: #55acee;
    color: #fff;
    font-size: 13px;
    height: 30px;
    width: 100%;
}
.validate-form .ng-dirty.ng-invalid {
    border-color: #e9322d;
    -webkit-box-shadow: 0 0 6px #f8b9b7;
    -moz-box-shadow: 0 0 6px #f8b9b7;
    box-shadow: 0 0 6px #f8b9b7;
}

.validate-form .ng-dirty.ng-valid {
    border-color: #67B168;

}
.validate-form .ng-dirty.ng-valid:hover {
	-webkit-box-shadow: 0 0 6px #67B168;
    -moz-box-shadow: 0 0 6px #67B168;
    box-shadow: 0 0 6px #67B168;
}
/**
 * 登录页的css
 */
.login-bg {
    position: fixed;
    height: 200%;
    width: 200%;
    left: -50%;
    top: -10%;
    z-index: -1;
}
.login-bg >img {
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    min-width: 50%;
    min-height: 50%;
    margin: auto;
}
#loginForm {
    position: relative;
    margin-top: 70px;
    right: 8%;
    display: block;
    width: 300px;
    border: 1px solid #fff;
    padding: 12px 12px 6px;
    margin-right: 20px;
    background-color: #fff;
    border-radius: 3px;
    float: right;
}
#loginForm >input {
    margin-bottom: 20px;
}
#loginForm .registNotice {
    font-size: 12px;
}
/**
 * 发现页的CSS
 */
.discovery-container {
	position: relative;
    padding-top: 70px;
    padding-bottom: 70px;
	width: 100%;
}
.discovery {
	border: 1px solid #eee;
    width: 75%;
	margin: 0 auto;
	padding: 16px 20px 0 20px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	border-radius: 3px;
    opacity: 0;
    animation: 0.4s cubic-bezier(0, 0.25, 0.08, 1) 0s normal forwards 1 running showDiscovery;
    -webkit-animation: 0.4s cubic-bezier(0, 0.25, 0.08, 1) 0s normal forwards 1 running showDiscovery;
}

@keyframes showDiscovery {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@-webkit-keyframes showDiscovery {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/**
 * 发表页的css
 */
#sayMain {
    padding-top: 50px;
}
#sayPanel {
    background-color: #fff;
    padding: 0;
}
.say-header {
    font-weight: bolder;
    box-shadow: 0 1px 5px -3px #000;
    padding: 7px 16px;
    margin-bottom: 10px;
}
.say-body .form-group {
    margin-left: 0px;
    margin-right: 0px;
}
.editor-box{
	border: 1px solid #eee;
	height: 382px;
    width: 79%;
    margin-left: 15px;
}
#editor {
	visibility: hidden;
}
.CodeMirror {
	height: 300px;
}
#sayNotice {
    color: #55acee;
    margin-left: 50px;
}
#sayNotice a {
    color: #000;
}

/**
 *个人主页的CSS
 */
#homeBody {
	position: relative;
}
#homeHead {
	background-image: url('../imgs/home-bg.jpg');
	background-position: bottom;
	background-attachment: fixed;
	text-align: center;
	padding: 100px 10px;
	color: white;
	position: relative;
    top: -52px;
	height: 265px;
}
.homeNav {
	position: absolute;
	top: 20px;
	right: 20px;
}
.homeNav >ul{
	list-style: none;
}
.homeNav >ul >li {
	display: block;
}
.homeNav >ul >li >a {
	color: #fff;
	font-size: 12px;
	text-decoration: none;
}
#homeMain {
	margin-top: 20px;
}
#homeMain >ul {
	list-style: none;
}
#homeMain >ul >li {
	padding: 20px;
	position: relative;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	border-radius: 3px;
	display: block;
	margin: 0 auto;
	width: 80%;
	margin-bottom: 20px;
}
.post-single{
	overflow: hidden;
    height: auto;
}
.contentHidden, .postIdHidden{
    display: none;
}
.postHandlerNav {
	list-style: none;
    position: absolute;
    top: -15px;
    right: -15px;
}
.postHandlerNav >li >a {
	color: #d58512;
	text-decoration: none;
	font-size: 12px;
}
#edit-form {
	position: absolute;
	width: 100%;
	height: 520px;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	display: none;
	background: #fff;
	padding: 20px;
}
/**
 * 账号设置页面的css
 */
.setting-main {
    margin-top: 50px;
}
.drop-box {
	width: 80%;
	margin: 0 auto;
	border: 2px dashed #eee;
	text-align: center;
	padding: 10px 0;
	color: #ec971f;
	margin-bottom: 10px;
}
.drop-box:hover {
	border-color: #ec971f;
}